﻿using PetaPoco;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BrnMall.Manager.Domain.AddressBook
{
    /// <summary>
    /// 客户跟进记录实体
    /// </summary>
    [TableName("crm_ClientFollow")]
    [PrimaryKey("id")]
    public class ClientFollow
    {
        public int Id { get; set; }
        /// <summary>
        /// 部门成员ID
        /// </summary>
        public int StaffId { get; set; }
        /// <summary>
        /// 客户ID
        /// </summary>
        public int ClientId { get; set; }
        /// <summary>
        /// 客户的跟进内容    
        /// </summary>
        public string Content { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime AddTime { get; set; }

    }


    /// <summary>
    /// 根据时间实体
    /// </summary>
    public class FollowDateView
    {
        /// <summary>
        /// 第一次跟进时间
        /// </summary>
        public DateTime FirstAddTime { get; set; }
        /// <summary>
        /// 最后一次根据时间
        /// </summary>
        public DateTime LastAddtime { get; set; }
    }
}